/**
 * Created by sunkejun on 2015/10/15.
 */

$(document).ready(function(){

})

var sitemapManger  = (function ($) {
    //...
    return {


        save: function () {

            var source = [];

            $(".sitemapitem").each(function(index,k){
                var data = {};
                var id = this.id;
                data.name = id;
                $("#"+id + " select").each(function(){
                    data[this.name] = $(this).val();
                });
                source.push(data);
            });



            //console.log(this.$editor.getValue());
            ComdataUtil.ajaxpost("/admin/sitemap",{value:source},function(){

            });

        }
    }
})(jQuery);